<template>
  <div>
     <!-- 轮播图区域 -->
    <mt-swipe :auto="4000" >
      <!-- 这里本来应该用vue-resource获取数据的，但是没有，就写死了 -->
      <mt-swipe-item v-for='item in swiperList' :key='item.img'>
        <img :src="item.img" alt="" :class="{'full':isfull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  props:['isfull','swiperList']
}
</script>
<style lang="scss">
  .mint-swipe {
  height: 200px;
  text-align: center;
  .mint-swipe-item {
    img {
      //width: 100%;
      height: 100%;
    }
    .full {
      width: 100%;
    }
  }
}
</style>
